<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Pagination 分页</title>

    <script src="https://unpkg.com/vue@2.6.14/dist/vue.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

    <style>

    </style>
</head>
<body>

<div id="App">

    <el-pagination
            @current-change="handleCurrentChange"
            :page-size="20"
            :pager-count="11"
            layout="prev, pager, next"
            :total="1000">
    </el-pagination>

</div>

<script>
    new Vue({
        el:"#App",
        methods:{
            handleCurrentChange(page){
                alert(page);
            }
        }
    });

</script>
</body>
</html>